package com.qf.t1;

import java.io.*;

/*
杨威
2021/9/11
21:09
*/
public class liu {
    public static void main(String[] args) throws IOException {
//        PrintWriter printWriter=new PrintWriter(new OutputStreamWriter(new FileOutputStream("d://abaaba//aba.txt"),"gbk"));
//        printWriter.println("你好世界");
//        printWriter.flush();

//        PrintWriter printWriter1=new PrintWriter("D://abaaba//aba.txt");
//        printWriter1.println("杨威");
//        printWriter1.flush();
        String s=new String("123");
        String s2=new String("123");
        System.out.println(s==s2);
        String s3="123";
        String s4="123";
        System.out.println(s3==s4);
        System.out.println(s==s3);
        System.out.println(s2==s4);

    }
}
